<include file="public:header" />
  <notempty name="apply['Subsite']">
  <div class="seltpye_x">
    <div class="left">所属分站</div>
    <qscms:subsite 列表名="subsite_list"/>
    <div class="right">
      <a href="{:P(array('subsite_id'=>''))}" <if condition="$Think.get.subsite_id eq ''">class="select"</if>>不限</a>
      <if condition="$visitor['role_id'] eq 1">
        <volist name="subsite_list" id="subsite">
          <a href="{:P(array('subsite_id'=>$subsite['s_id']))}" <if condition="$Think.get.subsite_id eq $subsite['s_id']">class="select"</if>>{$subsite.s_sitename}</a>
        </volist>
      <else/>
        <volist name="subsite_list" id="subsite">
          <if condition="in_array($subsite['s_id'],$visitor['subsite'])">
            <a href="{:P(array('subsite_id'=>$subsite['s_id']))}" <if condition="$Think.get.subsite_id eq $subsite['s_id']">class="select"</if>>{$subsite.s_sitename}</a>
          </if>
        </volist>
      </if>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  </notempty>
  <div class="seltpye_x">
    <div class="left">验证类型</div>
    <div class="right">
      <a href="{:P(array('verification'=>''))}" <if condition="$Think.get.verification eq ''">class="select"</if>>不限</a>
      <a href="{:P(array('verification'=>'1'))}" <if condition="$Think.get.verification eq '1'">class="select"</if>>邮箱已验证</a>
      <a href="{:P(array('verification'=>'2'))}" <if condition="$Think.get.verification eq '2'">class="select"</if>>邮箱未验证</a>
      <a href="{:P(array('verification'=>'3'))}" <if condition="$Think.get.verification eq '3'">class="select"</if>>手机已验证</a>
      <a href="{:P(array('verification'=>'4'))}" <if condition="$Think.get.verification eq '4'">class="select"</if>>手机未验证</a>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="seltpye_x">
    <div class="left">注册时间</div>
    <div class="right">
      <a href="{:P(array('settr'=>''))}" <if condition="$Think.get.settr eq ''">class="select"</if>>不限</a>
      <a href="{:P(array('settr'=>'3'))}" <if condition="$Think.get.settr eq '3'">class="select"</if>>三天内</a>
      <a href="{:P(array('settr'=>'7'))}" <if condition="$Think.get.settr eq '7'">class="select"</if>>一周内</a>
      <a href="{:P(array('settr'=>'30'))}" <if condition="$Think.get.settr eq '30'">class="select"</if>>一月内</a>
      <a href="{:P(array('settr'=>'180'))}" <if condition="$Think.get.settr eq '180'">class="select"</if>>半年内</a>
      <a href="{:P(array('settr'=>'360'))}" <if condition="$Think.get.settr eq '360'">class="select"</if>>一年内</a>
      <div class="clear"></div>
    </div>
    <div class="clear"></div>
  </div>
  
  <form id="form1" name="form1" method="post" action="{:U('delete')}">
    <table width="100%" border="0" cellpadding="0" cellspacing="0"  id="list" class="link_lan">
      <tr>
        <td width="15%" class="admin_list_tit admin_list_first" >
          <label id="chkAll"><input type="checkbox" name=" " title="全选/反选" id="chk"/>用户名</label></td>
		   <td class="admin_list_tit">企业信息</td>
          <td width="15%" class="admin_list_tit">email</td>
          <td width="10%" class="admin_list_tit">手机</td>
         
          <td width="8%" align="center" class="admin_list_tit">注册时间</td>
          <td width="8%" align="center" class="admin_list_tit">注册IP</td>
		   <td width="8%"   align="center"   class="admin_list_tit">注册地</td>
          <td width="8%" align="center" class="admin_list_tit">最后登录时间</td>
         
          <td width="10%"  align="center"  class="admin_list_tit" >操作</td>
        </tr>
        <volist name="list" id="vo">
        <tr>
          
          <td class="admin_list admin_list_first" >
            <input name="tuid[]" type="checkbox" value="{$vo['uid']}"/>{$vo['username']}</td>
			<td class="admin_list">
            <a <if condition="!$vo['c_contents']">style="color: #999999"</if> href="{:url_rewrite('QS_companyshow',array('id'=>$vo['company_id']))}" target="_blank"><if condition="$vo['companyname']">{:cut_str($vo['companyname'],15,0,'..')}<else/>未完善企业资料</if></a>
            </td>
            <td class="admin_list"><span <if condition="$vo['email_audit'] eq '1'"> style="color:#009900" </if>>{$vo['email']}</span>
              <span class="emailtip ajax_send_email" title="发送邮件" parameter="email={$vo['email']}&uid={$vo['uid']}">&nbsp;&nbsp;&nbsp;&nbsp;</span>
              
            </td>
            <td class="admin_list">
			<span <if condition="$vo['mobile_audit'] eq '1'"> style="color:#009900" </if>>{$vo['mobile']}</span>
              <if condition="$vo['mobile']"><span class="smstip ajax_send_sms" title="发送短信" parameter="mobile={$vo['mobile']}&uid={$vo['uid']}">&nbsp;&nbsp;&nbsp;&nbsp;</span><else />未填写</if>
            
            </td>
            
            <td align="center" class="admin_list">
            {:admin_date($vo['reg_time'])}   </td>
            <td align="center" class="admin_list">
            {$vo['reg_ip']|default=" - - - -"}</td>
			<td align="center" class="admin_list">
             <if condition="$vo['reg_address']">{$vo['reg_address']}<else />--</if>
            </td>
            <td align="center" class="admin_list">
              <if condition="$vo['last_login_time']">
              {:admin_date($vo['last_login_time'])}
              <else />
              &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;从未登录
              </if>
			  <span class="view login_log" title="最新5次登录记录" parameter="id={$vo['uid']}">&nbsp;&nbsp;&nbsp;&nbsp;</span>
            </td>
            
            <td align="center" class="admin_list">
  
              <a href="{:U('edit',array('uid'=>$vo['uid'],'_k_v'=>$vo['uid']))}">编辑</a>
              &nbsp;
			  
             
			   <a class="userinfo"  parameter="uid={$vo['uid']}" href="javascript:void(0);" hideFocus="true">管理</a>
            
            </td>
          </tr>
          </volist>
        </table>
        <span id="DelSel"></span>
      </form>
      <if condition="!$list">
      <div class="admin_list_no_info">没有任何信息！</div>
      </if>
      <table width="100%" border="0" cellspacing="10" cellpadding="0" class="admin_list_btm">
        <tr>
          <td>
            <input type="button" name="ButAdd" value="添加会员" class="admin_submit"  onclick="window.location.href='{:U('add')}'"/>
            <input type="button" name="ButDel"  id="ButDel" value="删除会员" class="admin_submit"/>
            <input type="button" name="AddConsultant" id="AddConsultant" value="设置顾问" class="admin_submit"/>
          </td>
          <td width="305" align="right">
            <form id="formseh" name="formseh" method="get" action="?">
              <input type="hidden" name="m" value="{:C('admin_alias')}">
              <input type="hidden" name="c" value="{:CONTROLLER_NAME}">
              <input type="hidden" name="a" value="{:ACTION_NAME}">
              <div class="seh">
                <div class="keybox"><input name="key" type="text"   value="{$Think.get.key}" /></div>
                <div class="selbox">
                  <input name="key_type_cn"  id="key_type_cn" type="text" value="{$Think.get.key_type_cn|default='用户名'}" readonly="true"/>
                  <div>
                    <input name="key_type" id="key_type" type="hidden" value="{$Think.get.key_type|default="1"}" />
                    <div id="sehmenu" class="seh_menu">
                      <ul>
                        <li id="1" title="用户名">用户名</li>
                        <li id="2" title="UID">UID</li>
                        <li id="3" title="email">email</li>
                        <li id="4" title="手机号">手机号</li>
                      </ul>
                    </div>
                  </div>
                </div>
                <div class="sbtbox">
                  <input type="submit" name="" class="sbt" id="sbt" value="搜索"/>
                </div>
                <div class="clear"></div>
              </div>
            </form>
          </td>
        </tr>
      </table>
      <div class="qspage">{$page}</div>
      <div id="GetDelInfo" style="display: none" >
      <table width="400" border="0" align="center" cellpadding="0" cellspacing="6" >
        <tr>
          <td width="30" height="30">&nbsp;</td>
          <td height="30"><strong  style="color:#0066CC; font-size:14px;">你确定要删除吗？</strong></td>
        </tr>
        <tr>
          <td width="27" height="25">&nbsp;</td>
          <td><label>
            <input name="delete_user" type="checkbox" id="delete_user" value="yes" checked="checked" />
          删除此会员 <span style="color:#666666">(删除后此会员将无法登录，无法管理已发布的信息等)<span></label></td>
        </tr>
        <tr>
          <td width="27" height="25">&nbsp;</td>
          <td width="425"><label>
            <input name="delete_company" type="checkbox" id="delete_company" value="yes" checked="checked" />
          删除此会员的企业资料</label></td>
        </tr>
        <tr>
          <td width="27" height="25">&nbsp;</td>
          <td width="425"><label>
            <input name="delete_jobs" type="checkbox" id="delete_jobs" value="yes" checked="checked"/>
          删除此企业发布的招聘信息</label></td>
        </tr>
        <tr>
          <td height="25">&nbsp;</td>
          <td><input type="submit" name="delete" value="确定删除" class="admin_submit"/></td>
        </tr>
      </table>
    </div>
    </div>
    <include file="public:footer" />

<script type="text/javascript">
$(document).ready(function()
{
  $(".ajax_send_sms").QSdialog({
    DialogTitle:"发送短信",
    DialogContentType:"url",
    DialogContent:"{:U('Ajax/ajax_send_sms')}&"
    });
  $(".ajax_send_email").QSdialog({
    DialogTitle:"发送邮件",
    DialogContentType:"url",
    DialogContent:"{:U('Ajax/ajax_send_email')}&"
    });
  showmenu("#key_type_cn","#sehmenu","#key_type");
  $(".userinfo").QSdialog({
  DialogTitle:"管理",
  DialogContentType:"url",
  DialogContent:"{:U('ajax/userinfo')}&"
  });
$("#ButDel").QSdialog({
DialogAddObj:"#DelSel",
DialogTitle:"请选择",
DialogContent:"#GetDelInfo",
DialogContentType:"id",
DialogWidth:"500"
});
$(".login_log").QSdialog({
  DialogTitle:"最新5次登录记录",
  DialogContentType:"url",
  DialogContent:"{:U('ajax/login_log')}&"
  });
//点击批量设置顾问
  $("#AddConsultant").click(function(){
    <if condition="$Think.get.subsite_id eq '' and $apply['Subsite']">
      alert('请选择所属分站！');
      return !1;
    </if>
    $("form[name=form1]").attr("action","{:U('consultant_install',array('subsite_id'=>$_GET['subsite_id']))}");
    $("form[name=form1]").submit()
  });
});
</script>
  </body>
</html>